package com.itboye.ihomebank.home;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.base.BaseOtherActivity;
import com.itboye.ihomebank.base.MyApplcation;
import com.itboye.ihomebank.me.ActivityFaBuHouse;
import com.itboye.ihomebank.myzhujia.ActivityMySign;
/**
 * 个人房东
 *
 */
public class ActivityPersonalLandlord extends BaseOtherActivity implements OnClickListener{
	private ImageView close_icon;// 返回图片
	private TextView add_shap_title_tv;// 标题
	
	RelativeLayout personal_release;//发布房源
	RelativeLayout personal_my;//我的发布
	RelativeLayout personal_order;//签约订单
	RelativeLayout personal_account;//我的账户
	RelativeLayout personal_renzheng;//实名认证
	
		
		
	

	@Override
	public void onClick(View v) {
		Intent intent=null;
		switch (v.getId()) {
		case R.id.close_icon:
			finish();
			break;
		case R.id.personal_release://发布房源
			intent = new Intent(this, ActivityFaBuHouse.class);
			startActivity(intent);
			break;
		case R.id.personal_my://我的发布
			intent=new Intent(MyApplcation.ctx, ActivityMyFaBu.class);
			startActivity(intent);
			break;
		case R.id.personal_order://签约订单
			intent=new Intent(MyApplcation.ctx, ActivityMySign.class);
			startActivity(intent);
			break;
		case R.id.personal_account://我的账户
			break;
		case R.id.personal_renzheng://实名认证
			intent=new Intent(MyApplcation.ctx, ActivityRealName.class);
			startActivity(intent);
			break;

		default:
			break;
		}
		
	}


	@Override
	protected int layout_id() {
		// TODO Auto-generated method stub
		return R.layout.activity_personal_landlord;
	}


	@Override
	protected void onInitController() {
		// TODO Auto-generated method stub
		
	}


	@Override
	protected void onInit() {
		// TODO Auto-generated method stub
		add_shap_title_tv.setText("个人房东");
	}


	@Override
	protected void onReadIntent(Bundle bundle) {
		// TODO Auto-generated method stub
		
	}

}
